<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/10/26
  Time: 9:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>
    <title>$Title$</title>
  </head>
  <body>
 <c:if test="${empty sessionScope.user}">
   欢迎光临,游客,<a href="${pageContext.request.contextPath}/login.jsp">登录</a>
   <a href="${pageContext.request.contextPath}/regist.jsp">注册</a>
 </c:if>

 <c:if test="${!empty sessionScope.user}">
   ${sessionScope.user.username},欢迎回来,
     <a href="${pageContext.request.contextPath}/list">用户列表</a>
     <a href="${pageContext.request.contextPath}/page?page=1&size=5">分页显示</a>
     <a href="${pageContext.request.contextPath}/pageByCond?page=1&size=5">带条件的分页</a>
     <a href="${pageContext.request.contextPath}/logout">退出</a>
 </c:if>

  </body>
</html>
